package com.example.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 凡哥哥
 * @since 2023-10-16
 */
@Getter
@Setter
@ApiModel("用户实体类")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("用户id")
    private Long id;
    @ApiModelProperty("用户密码")
    private String password;
    @ApiModelProperty("用户头像")
    private String image;
    @ApiModelProperty("用户名称")
    private String name;

    @ApiModelProperty("0女 1男")
    private Integer sex;
    @ApiModelProperty("用户手机号")
    private String phone;

    @ApiModelProperty("0禁用 1正常")
    private Boolean status;

    @TableField(exist = false)
    @ApiModelProperty("验证码")
    private String code;
    @ApiModelProperty("逻辑删除")
    private Integer isDelete;
}
